﻿using System;
using System.Diagnostics;
using System.Windows.Forms;

namespace TextEditor
{
   

    public class A_ViewSource : A_Action
    {
        public override string ActionName()
        {
            return "viewsource";
        }

        public override bool Execute()
        {
            string fileName = base.myOwnerDocument.Info.FileName;
            string strURL = Application.StartupPath + @"\temp.xml";
            base.myOwnerDocument.Info.SaveMode = 0;
            base.myOwnerDocument.ToXMLFile(strURL);
            Process.Start(strURL);
            base.myOwnerDocument.Info.FileName = fileName;
            return true;
        }
    }
}

